class CreateCourseStatistics < ActiveRecord::Migration[5.0]
  def change
    create_table :course_statistics do |t|
      t.string :company, comment: '公司'
      t.string :course, comment: '课程'
      t.date :date, comment: '日期'
      t.integer :place, default: 0, comment: '剩余名额'
      t.integer :queue, default: 0, comment: '排队名额'
      t.integer :appointed, default: 0, comment: '已报名人数'
      t.timestamps
    end
  end
end
